package com.shen.test;

import com.shen.computer.*;
import com.shen.scan.Fish;
import com.shen.scan.Sonar;
import com.shen.scan.Submarine;
import com.shen.scan.Swimming;

/**
 * Author:shen
 * CreateDate:2020/5/17.
 * Function:
 */
public class Mytest {
    public static void main(String[] args) {
        Sonar sonar=new Sonar();
        Fish fish=new Fish();
        Swimming submarine=new Submarine();
        sonar.scan(fish);
        sonar.scan(submarine);

        ///////////////////////////////
        MainBoard b = new MainBoard("华硕GLs845");
        b.assembleCPU(new AMD("Ryzen9", 3.6F));
        b.installMem(new Kingston("海盗侠", 32));
        b.installUSB(new USBFan("扬子"));
        b.installKeyboard(new KeyboardServiceImpl("键盘品牌"));
        b.work();
        System.out.println(">>>>>>>>>换一块cpu");
        b.assembleCPU(new Internet("酷睿I9第四十代", 32F));
        b.work();
    }
}
